﻿@model Bricks.Business.Models.Account.OrgInfo

@{
    ViewBag.Title = "编辑机构";
    Layout = "~/Views/Shared/_UserPage.cshtml";
}

<div class="frombox datagrid-body" style="padding-bottom:5px;">
    <form id="form-model" method="post">
        <table class="datagrid-btable" border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">机构名称</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="OrgName" class="easyui-textbox" data-options="required:true" value="@Model.OrgName" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">机构编码</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="OrgCode" class="easyui-textbox" value="@Model.OrgCode" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">邮箱</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Email" class="easyui-textbox" value="@Model.Email" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">联系电话</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="menu-type" name="Contactphone" value="@Model.Contactphone" />
                    </div>
                </td>
            </tr>
            @*<tr class="datagrid-row">
                    <td class="th">
                        <div class="datagrid-cell">机构类型</div>
                    </td>
                    <td class="td">
                        <div class="datagrid-cell">
                            <input id="OrgTypeNum" name="OrgTypeNum" class="easyui-combobox" value="@Model.OrgTypeNum" />
                        </div>
                    </td>
                </tr>*@
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">选择父级</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input id="PID" name="PID" value="@Model.PID" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">描述</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <input name="Description" class="easyui-textbox" value="@Model.Description" />
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">禁用</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        @*<input name="IsDeleted" type="checkbox" checked="@Model.IsDeleted" />*@
                        @Html.EditorFor(m => m.IsDeleted)
                    </div>
                </td>
            </tr>
            <tr class="datagrid-row">
                <td class="th">
                    <div class="datagrid-cell">提示</div>
                </td>
                <td class="td">
                    <div class="datagrid-cell">
                        <label style="color: blue;">禁用机构时，将自动禁用机构下的用户</label>
                    </div>
                </td>
            </tr>
        </table>
        <input id="ID" name="ID" type="hidden" value="@Model.ID" />
        <input name="OrderNo" type="hidden" value="@Model.OrderNo" />
        @*<input name="IsDeleted" type="hidden" value="@Model.IsDeleted" />*@
        <input name="AddDate" type="hidden" value="@Model.AddDate" />
    </form>
</div>